import request from '@/utils/request'

// 查询iot设备名称
export function getDeviceName(query) {
  return request({
    url: '/system/iotDeviceInfo/getDeviceName',
    method: 'get',
    params: query
  })
}

// 集约化检测
export function getDeviceRepetition(proId) {
  return request({
    url: `/system/iotDeviceInfo/getIntensificationExamineVo/${proId}`,
    method: 'get',
  })
}

// /system/iotDeviceInfo/select

// 集约化检测获取重复明细, list -重复设备类型
export function getIotDeviceInfoList(list, params) {
  return request({
    url: `/system/iotDeviceInfo/select`,
    method: 'post',
    data: list,
    params
  })
}